<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>1101: Tools.DEncrypt类参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 制作者 Doxygen 1.7.2 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>包</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>组合类型列表</span></a></li>
      <li><a href="classes.html"><span>组合类型索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>组合类型成员</span></a></li>
    </ul>
  </div>
  <div class="navpath">
    <ul>
      <li><a class="el" href="namespace_tools.html">Tools</a>      </li>
      <li><a class="el" href="class_tools_1_1_d_encrypt.html">DEncrypt</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">公有成员</a> &#124;
<a href="#pub-static-methods">静态公有成员</a>  </div>
  <div class="headertitle">
<h1>Tools.DEncrypt类参考</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Tools::DEncrypt" -->
<p>Encrypt 的摘要说明。  
<a href="#_details">更多...</a></p>

<p><a href="class_tools_1_1_d_encrypt-members.html">所有成员的列表。</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
公有成员</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_d_encrypt.html#a4b01a5ca225bde9e82c5989752f5ea3b">DEncrypt</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">构造方法  <a href="#a4b01a5ca225bde9e82c5989752f5ea3b"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
静态公有成员</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_d_encrypt.html#a8740f436753574a3bfb81f78940026cc">Encrypt</a> (string original)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">使用缺省密钥字符串加密string  <a href="#a8740f436753574a3bfb81f78940026cc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_d_encrypt.html#aa2b0161753b8a92a0af7e7ee563f880f">Decrypt</a> (string original)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">使用缺省密钥字符串解密string  <a href="#aa2b0161753b8a92a0af7e7ee563f880f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_d_encrypt.html#aab29298eae7650cbb0d865d72b61554b">Encrypt</a> (string original, string key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">使用给定密钥字符串加密string  <a href="#aab29298eae7650cbb0d865d72b61554b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_d_encrypt.html#abfbe4a8e2e6ec7b527f44e2d7d7fc5e5">Decrypt</a> (string original, string key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">使用给定密钥字符串解密string  <a href="#abfbe4a8e2e6ec7b527f44e2d7d7fc5e5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_d_encrypt.html#a6a644dd0a08d6fc180b6e2e90bd95665">Decrypt</a> (string encrypted, string key, Encoding encoding)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">使用给定密钥字符串解密string,返回指定编码方式明文  <a href="#a6a644dd0a08d6fc180b6e2e90bd95665"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static byte[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_d_encrypt.html#a87aea95632597425b0c6b372d690b0d7">Decrypt</a> (byte[] encrypted)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">使用缺省密钥字符串解密byte[]  <a href="#a87aea95632597425b0c6b372d690b0d7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static byte[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_d_encrypt.html#a2f0d34709517a7d89ce07b268bd98c1f">Encrypt</a> (byte[] original)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">使用缺省密钥字符串加密  <a href="#a2f0d34709517a7d89ce07b268bd98c1f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static byte[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_d_encrypt.html#ad313d36e50c3e237ca00b8fd216a42bf">MakeMD5</a> (byte[] original)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">生成MD5摘要  <a href="#ad313d36e50c3e237ca00b8fd216a42bf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static byte[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_d_encrypt.html#a7f0805cbc80e0fc79da3bed433002374">Encrypt</a> (byte[] original, byte[] key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">使用给定密钥加密  <a href="#a7f0805cbc80e0fc79da3bed433002374"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static byte[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_d_encrypt.html#a83a0023701bf53731acef0cf581f28dd">Decrypt</a> (byte[] encrypted, byte[] key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">使用给定密钥解密数据  <a href="#a83a0023701bf53731acef0cf581f28dd"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>详细描述</h2>
<p>Encrypt 的摘要说明。 </p>
<hr/><h2>构造及析构函数文档</h2>
<a class="anchor" id="a4b01a5ca225bde9e82c5989752f5ea3b"></a><!-- doxytag: member="Tools::DEncrypt::DEncrypt" ref="a4b01a5ca225bde9e82c5989752f5ea3b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Tools.DEncrypt.DEncrypt </td>
          <td>(</td>
          <td class="paramname">&#160;)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>构造方法 </p>

</div>
</div>
<hr/><h2>成员函数文档</h2>
<a class="anchor" id="aa2b0161753b8a92a0af7e7ee563f880f"></a><!-- doxytag: member="Tools::DEncrypt::Decrypt" ref="aa2b0161753b8a92a0af7e7ee563f880f" args="(string original)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static string Tools.DEncrypt.Decrypt </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>original</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>使用缺省密钥字符串解密string </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">original</td><td>密文</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>明文</dd></dl>

</div>
</div>
<a class="anchor" id="a83a0023701bf53731acef0cf581f28dd"></a><!-- doxytag: member="Tools::DEncrypt::Decrypt" ref="a83a0023701bf53731acef0cf581f28dd" args="(byte[] encrypted, byte[] key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static byte [] Tools.DEncrypt.Decrypt </td>
          <td>(</td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"> <em>encrypted</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"> <em>key</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>使用给定密钥解密数据 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">encrypted</td><td>密文</td></tr>
    <tr><td class="paramname">key</td><td>密钥</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>明文</dd></dl>

</div>
</div>
<a class="anchor" id="abfbe4a8e2e6ec7b527f44e2d7d7fc5e5"></a><!-- doxytag: member="Tools::DEncrypt::Decrypt" ref="abfbe4a8e2e6ec7b527f44e2d7d7fc5e5" args="(string original, string key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static string Tools.DEncrypt.Decrypt </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>original</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>key</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>使用给定密钥字符串解密string </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">original</td><td>密文</td></tr>
    <tr><td class="paramname">key</td><td>密钥</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>明文</dd></dl>

</div>
</div>
<a class="anchor" id="a6a644dd0a08d6fc180b6e2e90bd95665"></a><!-- doxytag: member="Tools::DEncrypt::Decrypt" ref="a6a644dd0a08d6fc180b6e2e90bd95665" args="(string encrypted, string key, Encoding encoding)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static string Tools.DEncrypt.Decrypt </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>encrypted</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Encoding&#160;</td>
          <td class="paramname"> <em>encoding</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>使用给定密钥字符串解密string,返回指定编码方式明文 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">encrypted</td><td>密文</td></tr>
    <tr><td class="paramname">key</td><td>密钥</td></tr>
    <tr><td class="paramname">encoding</td><td>字符编码方案</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>明文</dd></dl>

</div>
</div>
<a class="anchor" id="a87aea95632597425b0c6b372d690b0d7"></a><!-- doxytag: member="Tools::DEncrypt::Decrypt" ref="a87aea95632597425b0c6b372d690b0d7" args="(byte[] encrypted)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static byte [] Tools.DEncrypt.Decrypt </td>
          <td>(</td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"> <em>encrypted</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>使用缺省密钥字符串解密byte[] </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">encrypted</td><td>密文</td></tr>
    <tr><td class="paramname">key</td><td>密钥</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>明文</dd></dl>

</div>
</div>
<a class="anchor" id="aab29298eae7650cbb0d865d72b61554b"></a><!-- doxytag: member="Tools::DEncrypt::Encrypt" ref="aab29298eae7650cbb0d865d72b61554b" args="(string original, string key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static string Tools.DEncrypt.Encrypt </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>original</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>key</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>使用给定密钥字符串加密string </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">original</td><td>原始文字</td></tr>
    <tr><td class="paramname">key</td><td>密钥</td></tr>
    <tr><td class="paramname">encoding</td><td>字符编码方案</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>密文</dd></dl>

</div>
</div>
<a class="anchor" id="a7f0805cbc80e0fc79da3bed433002374"></a><!-- doxytag: member="Tools::DEncrypt::Encrypt" ref="a7f0805cbc80e0fc79da3bed433002374" args="(byte[] original, byte[] key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static byte [] Tools.DEncrypt.Encrypt </td>
          <td>(</td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"> <em>original</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"> <em>key</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>使用给定密钥加密 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">original</td><td>明文</td></tr>
    <tr><td class="paramname">key</td><td>密钥</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>密文</dd></dl>

</div>
</div>
<a class="anchor" id="a8740f436753574a3bfb81f78940026cc"></a><!-- doxytag: member="Tools::DEncrypt::Encrypt" ref="a8740f436753574a3bfb81f78940026cc" args="(string original)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static string Tools.DEncrypt.Encrypt </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>original</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>使用缺省密钥字符串加密string </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">original</td><td>明文</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>密文</dd></dl>

</div>
</div>
<a class="anchor" id="a2f0d34709517a7d89ce07b268bd98c1f"></a><!-- doxytag: member="Tools::DEncrypt::Encrypt" ref="a2f0d34709517a7d89ce07b268bd98c1f" args="(byte[] original)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static byte [] Tools.DEncrypt.Encrypt </td>
          <td>(</td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"> <em>original</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>使用缺省密钥字符串加密 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">original</td><td>原始数据</td></tr>
    <tr><td class="paramname">key</td><td>密钥</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>密文</dd></dl>

</div>
</div>
<a class="anchor" id="ad313d36e50c3e237ca00b8fd216a42bf"></a><!-- doxytag: member="Tools::DEncrypt::MakeMD5" ref="ad313d36e50c3e237ca00b8fd216a42bf" args="(byte[] original)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static byte [] Tools.DEncrypt.MakeMD5 </td>
          <td>(</td>
          <td class="paramtype">byte[]&#160;</td>
          <td class="paramname"> <em>original</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>生成MD5摘要 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">original</td><td>数据源</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>摘要</dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成：<ul>
<li>D:/Project/1101/Tools/EncryptHelper.cs</li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>名字空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>属性</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated at Sun Apr 10 2011 19:47:50 for 1101 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
